class UserInfoReslutModel {
  late int code;
  late String message;
  late Content content;

  UserInfoReslutModel(
      {required this.code, required this.message, required this.content});

  UserInfoReslutModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    content = (json['content'] != null
        ? new Content.fromJson(json['content'])
        : null)!;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.content != null) {
      data['content'] = this.content.toJson();
    }
    return data;
  }
}

class Content {
  late int total;
  late int page;
  late int perPage;
  late UserInfoModel data;

  Content(
      {required this.total,
      required this.page,
      required this.perPage,
      required this.data});

  Content.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    page = json['page'];
    perPage = json['per_page'];
    data = (json['data'] != null
        ? new UserInfoModel.fromJson(json['data'])
        : null)!;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['page'] = this.page;
    data['per_page'] = this.perPage;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class UserInfoModel {
  late int id;
  late String name;
  late String account;
  late String email;
  late String sex;
  late String phone;
  late int orgId;
  late String orgName;
  late String controlPwd;
  late int adId;
  late String adName;

  UserInfoModel(
      {required this.id,
      required this.name,
      required this.account,
      required this.email,
      required this.sex,
      required this.phone,
      required this.orgId,
      required this.orgName,
      required this.controlPwd,
      required this.adId,
      required this.adName});

  UserInfoModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    account = json['account'];
    email = json['email'];
    sex = json['sex'];
    phone = json['phone'];
    orgId = json['org_id'];
    orgName = json['org_name'];
    controlPwd = json['control_pwd'];
    adId = json['ad_id'];
    adName = json['ad_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['account'] = this.account;
    data['email'] = this.email;
    data['sex'] = this.sex;
    data['phone'] = this.phone;
    data['org_id'] = this.orgId;
    data['org_name'] = this.orgName;
    data['control_pwd'] = this.controlPwd;
    data['ad_id'] = this.adId;
    data['ad_name'] = this.adName;
    return data;
  }
}
